<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        window.onload = function () {
            var myJson = {
                "key1": "韩顺平",
                "key2": 123,
                "key3": [1, "hello", 2.3],
                "key4": {"age": 12, "name": "jack"},
                "key5": [
                    {"k1": 10, "k2": "milan"},
                    {"k3": 30, "k4": "smith"},
                ]
            }
            console.log("key1=", myJson.key1)
            console.log("key2=", myJson.key2)
            console.log("key3=", myJson.key3)
            for (let i = 0; i < myJson.key3.length; i++) {
                console.log("第%i个元素=", i, myJson.key3[i]);
            }
            console.log("key4=", myJson.key4, "name=", myJson.key4.name)
            console.log("key5=", myJson.key5, "k4=", myJson.key5[1].k4)
        }
    </script>
</head>
<body>

</body>
</html>